package com.example.tutobdd;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by richard on 05/02/14.
 */
public class BDDHelper  extends SQLiteOpenHelper{

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("CREATE TABLE infos (_id INTEGER PRIMARY KEY AUTOINCREMENT , info TEXT NOT NULL)");

        db.execSQL("INSERT INTO infos VALUES (1,'lundi')");
        db.execSQL("INSERT INTO infos VALUES (2,'mardi')");

    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
    public BDDHelper (Context context){
        super(context,"infos.db",null,1);
    }

}
